Skip to content

chore(docs): make typedoc resolve node Buffer type via tsconfig.docs.json - #458

Merged
barjin merged 1 commit into
masterfrom
ci/fix-typedoc-tsconfig
May 28, 2026
Merged

barjin merged 1 commit into
masterfrom
ci/fix-typedoc-tsconfig

Conversation

@barjin

@barjin barjin commented May 28, 2026

Copy link
Copy Markdown
Member

The docs build started failing on master after the TypeScript v6 upgrade (#425) with:

index.d.ts:147:24 - error TS2591: Cannot find name 'Buffer'.

TS6 no longer accepts an unresolved Buffer global. The docs script ran typedoc without a tsconfig, so @types/node (already a devDependency) was not picked up.

Adds a minimal impit-node/tsconfig.docs.json that pins types: ["node"] and scopes the program to index.d.ts, and passes it to typedoc via --tsconfig. Verified locally — docs now generate without error.

@github-actions github-actions Bot added this to the 141st sprint - Tooling team milestone May 28, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label May 28, 2026
@barjin barjin changed the title fix(node): make typedoc resolve node Buffer type via tsconfig.docs.json chore(docs): make typedoc resolve node Buffer type via tsconfig.docs.json May 28, 2026
@barjin barjin added the adhoc Ad-hoc unplanned task added during the sprint. label May 28, 2026
@barjin
barjin merged commit bcd3d76 into master May 28, 2026
33 of 34 checks passed
@barjin
barjin deleted the ci/fix-typedoc-tsconfig branch May 29, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants